﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Serialization;
using Users;
using Lists;
using Sim;

namespace Sim
{
    [Serializable()]
    public class Tournament
    {
        public bool isStarted { get; set; }
        public string title { get; set; }
        public DateTime date { get; set; }
        public int jumpHeight { get; set; }
        public string sex { get; set; }
        public int totalJudges { get; set; }
        public JudgeList listOfJudges;
        public int totalDivers { get; set; }
        public DiverList listOfDivers;

        public Tournament()
        {
            this.isStarted = false;
            this.title = "";
            this.date = DateTime.Today;
            this.jumpHeight = 0;
            this.sex = "";
            this.totalJudges = 0;
            this.totalDivers = 0;
            listOfDivers = new DiverList();
            listOfJudges = new JudgeList();
        }

        public Tournament(string tourneyName, DateTime date, int jumpHeight, string sex, int totalJudges, int totalDivers)
        {
            this.isStarted = false;
            this.title = tourneyName;
            this.date = date;
            this.jumpHeight = jumpHeight;
            this.sex = sex;
            this.totalJudges = totalJudges;
            this.totalDivers = totalDivers;
            listOfDivers = new DiverList();
            listOfJudges = new JudgeList();
            
        }
    }
}